tree approach

[计] 求树法